import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App.jsx';
import { BrowserRouter } from 'react-router-dom';
import 'antd/dist/reset.css';
import './css/index.css';
import './css/App.css';
import store from './redux/store.js';
import { Provider } from 'react-redux';
import zhCN from 'antd/es/locale/zh_CN'; // 中文语言包
import { ConfigProvider } from 'antd';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <Provider store={store}>
    <BrowserRouter>
      {/* <React.StrictMode> */}
        <ConfigProvider locale={zhCN}>
          <App />
        </ConfigProvider>
      {/* </React.StrictMode> */}
    </BrowserRouter>
  </Provider>,
);
